package com.qiang.test03;

import java.io.IOException;
import java.net.*;

public class SendDemo {
    public static void main(String[] args) throws IOException {
        DatagramSocket ds = new DatagramSocket();
        byte[] bb = new byte[1024];
        InetAddress byName = InetAddress.getByName("224.0.1.0");
        DatagramPacket dp = new DatagramPacket(bb, bb.length, byName, 10000);
        ds.send(dp);
        ds.close();
    }
}
